var express = require('express');
var router = express.Router();

/* GET users listing. */
router.get('/', function(req, res, next) {
  res.send('respond with a resource');
});

var info=[
    {name:"张三",age:18},
    {name:"李四",age:11},
    {name:"春生",age:33},
    {name:"三桂",age:23},
    {name:"春华",age:45},

];

router.get('/infos', function(req, res, next) {
  res.json(info);
});

module.exports = router;
